package tools

import (
	"github.com/sirupsen/logrus"
	"gopkg.in/ini.v1"
	"os"
)

var Cfg *ini.File
var err error

func InitIni() {
	Cfg, err = ini.Load("logs/config.ini")

	if err != nil {
		Log.WithFields(logrus.Fields{
			"msg": "InitIni",
		}).Error("ini 文件对象初始化失败")

		os.Exit(1)
	}
}